<?php
/*
+--------------------------------------------------------------------------
|   phpBIZ v3.0  full version
|   ========================================
|   by taft@wjl.cn yejun@wjl.cn
|   http://www.phpbiz.cn http://www.wjl.cn
|   all rights reserved
+---------------------------------------------------------------------------
|
|   > 最后修改日期：2005-4-30 2006-2-8
|
+--------------------------------------------------------------------------
*/
!class_exists('Debug') && exit('Forbidden');
$rd = new ReadM;

class ReadM
{
	function ReadM()
	{
		global $DB,$BIZ,$INCOME;

        $id = intval( $INCOME["ID"] );

     	$DB -> db_query( "SELECT * FROM biz_message WHERE message_id ='".$id."'" );
		if( $DB -> db_fetch_num() != 1) $BIZ -> error("没有相关信息！","");
		
     	$r = $DB -> db_fetch_row();
		$r['message_write_date'] =date("Y-m-d H:i:s",$r['message_write_date']);
        $DB -> db_query( "UPDATE biz_message SET message_visit_count = message_visit_count+1 WHERE message_id ='".$id."'");
		$BIZ -> nav_link[] =array("阅读公告","");
		$BIZ -> assign( "message",$r );
		
		$BIZ -> output("Read.tpl");
	}
}
?>